export const menu_status = {
  '': '全部',
  1: '有效',
  2: '停用',
  3: '冻结'
}
export const menuColumns = [
  // 多选
  //   {
  //     type: 'selection'
  //   },
  {
    prop: 'change',
    label: '选择',
    minWidth: 60,
    showTooltipWhenOverflow: true
  },
  {
    type: 'index',
    label: '序号',
    width: '60'
  },
  {
    prop: 'resourceCode',
    label: '自定义唯一标识码',
    minWidth: 100,
    showTooltipWhenOverflow: true
  },
  {
    prop: 'resourceName',
    label: '菜单名称',
    minWidth: 100,
    showTooltipWhenOverflow: true
  },
  {
    prop: 'resourceType',
    label: '菜单类型',
    minWidth: 100,
    showTooltipWhenOverflow: true,
    formatter: row => menu_status[row.status]
  },
  {
    prop: 'resourcePath',
    label: '菜单地址',
    minWidth: 100,
    showTooltipWhenOverflow: true
  },
  {
    prop: 'resourceIcon',
    label: 'icon编码',
    minWidth: 100,
    showTooltipWhenOverflow: true
  }
  // {
  //   prop: 'operation',
  //   label: '操作',
  //   minWidth: 150,
  //   showTooltipWhenOverflow: true
  // }
]
// 导航菜单管理表头定义
export const navMenuColumns = [
  {
    prop: 'change',
    label: '选择',
    minWidth: 60,
    showTooltipWhenOverflow: true
  },
  {
    type: 'index',
    label: '序号',
    minWidth: '60'
  },
  {
    prop: 'resourceCode',
    label: '自定义唯一标识码',
    minWidth: '150'
  },
  {
    prop: 'resourceName',
    label: '菜单名称',
    minWidth: '120'
  },
  {
    prop: 'resourceType',
    label: '菜单类型',
    minWidth: '150',
    formatter: row => menu_status[row.status]
  },
  {
    prop: 'resourceIcon',
    label: 'icon编码',
    minWidth: '300'
  }
]
